import type { RouteRecordRaw } from 'vue-router'

/**
 * 文本生成图像相关路由
 */
const text2imgRoutes: RouteRecordRaw[] = [
  {
    path: '/text2img',
    name: 'text2img',
    component: () => import('../views/Text2Img/Text2ImgGenerator.vue'),
    meta: {
      title: 'AI绘图',
      requiresAuth: false
    }
  },
  {
    path: '/text2img/models',
    name: 'text2img-models',
    component: () => import('../views/Text2Img/ModelConfigView.vue'),
    meta: {
      title: '模型配置',
      requiresAuth: false
    }
  },
  {
    path: '/text2img/history',
    name: 'text2img-history',
    component: () => import('../views/Text2Img/Text2ImgHistory.vue'),
    meta: {
      title: '历史记录',
      requiresAuth: false
    },
    props: {
      models: [],
      generating: false
    }
  }
]

export default text2imgRoutes 